<?php
//登录后台
Route::get('admin','Cms/Index/index');

//CMS应用
Route::group(array('prefix'=>'cms'),function(){

	//登录
	Route::get('login','Cms/Login/login');

	//后台首页
	Route::get('index','Cms/Index/index');

	//菜单
	Route::resource('menu', 'Cms/Menu');

	//模型
	Route::resource('model', 'Cms/Model');

	//字段
	Route::resource('field', 'Cms/Field');
});

//微信应用
Route::group(array('prefix'=>'wx'),function(){

	//自定义菜单
	Route::resource('menu', 'Wx/Menu');
	//素材管理
	Route::resource('library', 'Wx/Library');

});
